

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main" />
        <title>Taxa List</title>
    </head>
    <body>
        <div class="nav">
           
            <span class="menuButton"><g:link class="create" action="create">Nova Taxa</g:link></span>
        </div>
        <div class="body">
            <h1>Taxas Cadastradas</h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <div class="list">
                <table>
                    <thead>
                        <tr>
                        
							<g:sortableColumn property="nomeTaxa" title="Taxa" />
                   	        <g:sortableColumn property="inicioVigencia" title="Inicio Vigencia" />
                        
                   	        <g:sortableColumn property="fimVigencia" title="Fim Vigencia" />
                        
                   	        <g:sortableColumn property="tipo" title="Tipo" />
                        
                   	        <g:sortableColumn property="valor" title="Valor" />
							<th/>
                        
                        </tr>
                    </thead>
                    <tbody>
                    <g:each in="${taxaList}" status="i" var="taxa">
                        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
                        
                           
							  <td>${taxa.nomeTaxa.encodeAsHTML()}</td>
                            <td><g:formatDate format="dd-MM-yyyy" date="${taxa.inicioVigencia.time}" /></td>
                        
                            <td><g:formatDate format="dd-MM-yyyy" date="${taxa.fimVigencia?.time}" /></td>
                        
                            <td>${taxa.tipo?.encodeAsHTML()}</td>
                        
                            <td>${taxa.valor?.encodeAsHTML()}</td>
							 <td><g:link action="show" id="${taxa.id}">exibir</g:link></td>
                        
                        </tr>
                    </g:each>
                    </tbody>
                </table>
            </div>
            <div class="paginateButtons">
                <g:paginate total="${Taxa.count()}" />
            </div>
        </div>
    </body>
</html>
